<button (click)="onsearch()">查询</button>

<ul>
    <li *ngFor="let item of datalist">
        {{item}}
    </li>
    
</ul>